﻿<%@ Page Language="C#" AutoEventWireup="true" 
    CodeBehind="ExternalRedirectionsList.aspx.cs" 
    Inherits="Medianamik.UI.RedirectManagement.ExternalRedirectionsList"
    MasterPageFile="../MasterPages/MedianamikModule.Master" %>

<asp:Content ID="ContextMenuContent" ContentPlaceHolderID="ContextMenu" runat="server">
    <asp:HyperLink ID="lnkAddRedirect" NavigateUrl="ExternalRedirectionManagement.aspx" 
        runat="server" class="Action BtAjouter" 
        Text="<%$ Resources: Medianamik_RedirectManagement, AddRedirect %>"/>
    <a href="#" class="Action BtAnnuler-Inactif">Annuler</a>
</asp:Content>
 
<asp:Content ID="CenterContent" ContentPlaceHolderID="CenterContent" runat="server">
	<asp:UpdatePanel runat="server" id="RedirectPanel" UpdateMode="Conditional">
	<ContentTemplate>
	    <telerik:RadGrid runat="server" ID="GridRedirect" EnableEmbeddedSkins="false"
            Skin="Medianamik" AllowPaging="false" AutoGenerateColumns="false"
            AllowMultiRowSelection="false" Width="100%" >
            <MasterTableView DataKeyNames="ID">
                <Columns>
				    <telerik:GridTemplateColumn >
				        <HeaderTemplate>
				            <asp:Literal runat="server" Text="<%$ Resources: Medianamik_RedirectManagement, FromColumn%>" />
				            <med:GridColumnFilter runat="server" Value ='<%# Filter %>'  OnFilter="ApplyFilter" id="Filter" />
				        </HeaderTemplate> 
				        <ItemTemplate>
				            <img alt="" src="/Medianamik/images/Icones/Ico_Redirection.png" class="IconesElements" /><p><%# Eval("RedirectFrom") %></p>
				        </ItemTemplate>
				    </telerik:GridTemplateColumn>
				    <telerik:GridBoundColumn HeaderText="<%$ Resources: Medianamik_RedirectManagement, ToColumn%>" DataField="RedirectTo" />
				    <telerik:GridBoundColumn HeaderText="<%$ Resources: Medianamik_RedirectManagement, ResponseCodeColumn%>" DataField="ResponseCode" />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
      </ContentTemplate> 
	</asp:UpdatePanel>
</asp:Content>